<td>Chọn địa điểm (*)</td>
<td>
    <select name='sbo_country_visit_<?=$index?>' id='sbo_country_visit_<?=$index?>' onChange="reload_location(this.value,'td_location_visit_<?=$index?>','sbo_location_visit_<?=$index?>')">
    <?
        $countryFirst = NULL;
        $countries = Country::getAllCountries();
        foreach ($countries as $country)
        {
            if (!$countryFirst)
                $countryFirst = $country;
        ?>
        <option value='<?=$country->getid()?>'><?=$country->getname()?></option>
        <?
        }
    ?>
    </select>
</td>
<td colspan="2" id=''>
	<span id='td_location_visit_<?=$index?>'>
    <select name='sbo_location_visit_<?=$index?>' id='sbo_location_visit_<?=$index?>'>
    <?
        $locations = $countryFirst->getAllLocations();
        foreach ($locations as $location)
        {
        ?>
        <option value='<?=$location->getid()?>'><?=$location->getname()?></option>
        <?
        }
    ?>
    </select>
    </span>
    <a style='display:inline-block;float:left;padding-top:6px;padding-left:10px;' onclick='remove_location_visit(<?=$index?>)'>Xóa</a>
</td>